package com.jeesite.modules.backlog.dao;

import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.entity.Page;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.backlog.entity.DcSupBacklog;
import com.jeesite.modules.task.action.entity.DcSupTaskAction;
import com.jeesite.modules.task.deploy.entity.DcSupTaskInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 待办事项表DAO接口
 * @author zrr
 * @version 2022-11-21
 */
@MyBatisDao
public interface DcSupBacklogDao extends CrudDao<DcSupBacklog> {

    void doBacklog(DcSupBacklog dcSupBacklog);

    List<DcSupBacklog> getDoBacklog(DcSupBacklog dcSupBacklog);
    List<DcSupBacklog> getUpdateBacklog(DcSupBacklog dcSupBacklog);

    List<DcSupBacklog> getList(DcSupBacklog dcSupBacklog);

    /**
     * 查询传入用户的待办信息
     * @param dcSupBacklog
     * @return
     */
    List<DcSupBacklog> getListByUserCode(DcSupBacklog dcSupBacklog);

    /**
     * 查询传入用户的待办数量
     * @param receiveUserCode
     * @return
     */
    Integer getCountByUserCode(String receiveUserCode);

    Integer updateBacklog(DcSupBacklog dcSupBacklog);
    List<DcSupBacklog> getDetailPage(String taskId);
//    List<DcSupBacklog> getDetailPage(DcSupBacklog dcSupBacklog);
    List<DcSupBacklog> getDetailList(String id);

    DcSupTaskInfo getInfo(String taskId);

    List<DcSupTaskAction> getActionList(DcSupBacklog dcSupBacklog);

    List<DcSupBacklog> getDetailPage2(String taskId);
    List<DcSupBacklog> getDetailPage3(String taskId);

    List<DcSupBacklog> getDetailPage4(String taskId);

    Integer getRefineNum(String taskId);

    void updateWZTaddMessage2Bacnklog(@Param("id") String id,@Param("message") String message);
    void updateWZTdealMessage2Bacnklog(@Param("id") String id,@Param("message") String message);
}